<?php
$file = $_FILES['file1'];

var_dump($file);

$name = $file['name'];
$dirname = __DIR__."/uploads/";

$filename = date("ymdHis").$name;

$file_name = $dirname . $filename;
$d= dirname($file_name);
echo($d);
if (!is_dir($d) ){
    mkdir($d,0777,true);
}else{
    echo "有";
}

move_uploaded_file($file['tmp_name'],$file_name);

var_dump($_FILES);